Optimal. Leaf size=316 \[ \frac {d \log \left (-\sqrt {2} \sqrt {\sqrt {c^2+d^2}+c} \sqrt {c+d x}+\sqrt {c^2+d^2}+c+d x\right )}{2 \sqrt {2} \sqrt {\sqrt {c^2+d^2}+c}}-\frac {d \log \left (\sqrt {2} \sqrt {\sqrt {c^2+d^2}+c} \sqrt {c+d x}+\sqrt {c^2+d^2}+c+d x\right )}{2 \sqrt {2} \sqrt {\sqrt {c^2+d^2}+c}}+\frac {d \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c^2+d^2}+c}-\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}}-\frac {d \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c^2+d^2}+c}+\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 316, normalized size of antiderivative = 1.00, number of steps used = 10, number of rules used = 6, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.353, Rules used = {700, 1129, 634, 618, 206, 628} \[ \frac {d \log \left (-\sqrt {2} \sqrt {\sqrt {c^2+d^2}+c} \sqrt {c+d x}+\sqrt {c^2+d^2}+c+d x\right )}{2 \sqrt {2} \sqrt {\sqrt {c^2+d^2}+c}}-\frac {d \log \left (\sqrt {2} \sqrt {\sqrt {c^2+d^2}+c} \sqrt {c+d x}+\sqrt {c^2+d^2}+c+d x\right )}{2 \sqrt {2} \sqrt {\sqrt {c^2+d^2}+c}}+\frac {d \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c^2+d^2}+c}-\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}}-\frac {d \tanh ^{-1}\left (\frac {\sqrt {\sqrt {c^2+d^2}+c}+\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 618
Rule 628
Rule 634
Rule 700
Rule 1129
Rubi steps
\begin {align*} \int \frac {\sqrt {c+d x}}{1+x^2} \, dx &=(2 d) \operatorname {Subst}\left (\int \frac {x^2}{c^2+d^2-2 c x^2+x^4} \, dx,x,\sqrt {c+d x}\right )\\ &=\frac {d \operatorname {Subst}\left (\int \frac {x}{\sqrt {c^2+d^2}-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )}{\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}-\frac {d \operatorname {Subst}\left (\int \frac {x}{\sqrt {c^2+d^2}+\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )}{\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}\\ &=\frac {1}{2} d \operatorname {Subst}\left (\int \frac {1}{\sqrt {c^2+d^2}-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )+\frac {1}{2} d \operatorname {Subst}\left (\int \frac {1}{\sqrt {c^2+d^2}+\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )+\frac {d \operatorname {Subst}\left (\int \frac {-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}+2 x}{\sqrt {c^2+d^2}-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}-\frac {d \operatorname {Subst}\left (\int \frac {\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}+2 x}{\sqrt {c^2+d^2}+\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} x+x^2} \, dx,x,\sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}\\ &=\frac {d \log \left (c+\sqrt {c^2+d^2}+d x-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} \sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}-\frac {d \log \left (c+\sqrt {c^2+d^2}+d x+\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} \sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}-d \operatorname {Subst}\left (\int \frac {1}{2 \left (c-\sqrt {c^2+d^2}\right )-x^2} \, dx,x,-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}+2 \sqrt {c+d x}\right )-d \operatorname {Subst}\left (\int \frac {1}{2 \left (c-\sqrt {c^2+d^2}\right )-x^2} \, dx,x,\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}+2 \sqrt {c+d x}\right )\\ &=\frac {d \tanh ^{-1}\left (\frac {\sqrt {c+\sqrt {c^2+d^2}}-\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}}-\frac {d \tanh ^{-1}\left (\frac {\sqrt {c+\sqrt {c^2+d^2}}+\sqrt {2} \sqrt {c+d x}}{\sqrt {c-\sqrt {c^2+d^2}}}\right )}{\sqrt {2} \sqrt {c-\sqrt {c^2+d^2}}}+\frac {d \log \left (c+\sqrt {c^2+d^2}+d x-\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} \sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}-\frac {d \log \left (c+\sqrt {c^2+d^2}+d x+\sqrt {2} \sqrt {c+\sqrt {c^2+d^2}} \sqrt {c+d x}\right )}{2 \sqrt {2} \sqrt {c+\sqrt {c^2+d^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.04, size = 75, normalized size = 0.24 \[ i \sqrt {c+i d} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c+i d}}\right )-i \sqrt {c-i d} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {c-i d}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.97, size = 925, normalized size = 2.93 \[ -\frac {4 \, \sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} \arctan \left (-\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {d x + c} d \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} - \sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d x + c} d^{3} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} + c^{3} d^{2} + c d^{4} + {\left (c^{2} d^{3} + d^{5}\right )} x + {\left (c^{2} d^{2} + d^{4}\right )} \sqrt {c^{2} + d^{2}}}{c^{2} + d^{2}}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} + {\left (c^{2} + d^{2}\right )}^{\frac {3}{2}} \sqrt {d^{2}} + {\left (c^{3} + c d^{2}\right )} \sqrt {d^{2}}}{c^{2} d^{2} + d^{4}}\right ) + 4 \, \sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} \arctan \left (-\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {d x + c} d \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} - \sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d^{2}} \sqrt {-\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d x + c} d^{3} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} - c^{3} d^{2} - c d^{4} - {\left (c^{2} d^{3} + d^{5}\right )} x - {\left (c^{2} d^{2} + d^{4}\right )} \sqrt {c^{2} + d^{2}}}{c^{2} + d^{2}}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} - {\left (c^{2} + d^{2}\right )}^{\frac {3}{2}} \sqrt {d^{2}} - {\left (c^{3} + c d^{2}\right )} \sqrt {d^{2}}}{c^{2} d^{2} + d^{4}}\right ) + \sqrt {2} {\left (c^{2} + d^{2} - \sqrt {c^{2} + d^{2}} c\right )} {\left (c^{2} + d^{2}\right )}^{\frac {1}{4}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} \log \left (\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d x + c} d^{3} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} + c^{3} d^{2} + c d^{4} + {\left (c^{2} d^{3} + d^{5}\right )} x + {\left (c^{2} d^{2} + d^{4}\right )} \sqrt {c^{2} + d^{2}}}{c^{2} + d^{2}}\right ) - \sqrt {2} {\left (c^{2} + d^{2} - \sqrt {c^{2} + d^{2}} c\right )} {\left (c^{2} + d^{2}\right )}^{\frac {1}{4}} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} \log \left (-\frac {\sqrt {2} {\left (c^{2} + d^{2}\right )}^{\frac {3}{4}} \sqrt {d x + c} d^{3} \sqrt {\frac {c^{2} + d^{2} + \sqrt {c^{2} + d^{2}} c}{d^{2}}} - c^{3} d^{2} - c d^{4} - {\left (c^{2} d^{3} + d^{5}\right )} x - {\left (c^{2} d^{2} + d^{4}\right )} \sqrt {c^{2} + d^{2}}}{c^{2} + d^{2}}\right )}{4 \, {\left (c^{2} + d^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.29, size = 566, normalized size = 1.79 \[ -\frac {c^{2} \arctan \left (\frac {2 \sqrt {d x +c}-\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}}\right )}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}\, d}-\frac {c^{2} \arctan \left (\frac {2 \sqrt {d x +c}+\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}}\right )}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}\, d}-\frac {\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}\, c \ln \left (d x +c -\sqrt {d x +c}\, \sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}+\sqrt {c^{2}+d^{2}}\right )}{4 d}+\frac {\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}\, c \ln \left (d x +c +\sqrt {d x +c}\, \sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}+\sqrt {c^{2}+d^{2}}\right )}{4 d}+\frac {\left (c^{2}+d^{2}\right ) \arctan \left (\frac {2 \sqrt {d x +c}-\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}}\right )}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}\, d}+\frac {\left (c^{2}+d^{2}\right ) \arctan \left (\frac {2 \sqrt {d x +c}+\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}}\right )}{\sqrt {-2 c +2 \sqrt {c^{2}+d^{2}}}\, d}+\frac {\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}\, \sqrt {c^{2}+d^{2}}\, \ln \left (d x +c -\sqrt {d x +c}\, \sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}+\sqrt {c^{2}+d^{2}}\right )}{4 d}-\frac {\sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}\, \sqrt {c^{2}+d^{2}}\, \ln \left (d x +c +\sqrt {d x +c}\, \sqrt {2 c +2 \sqrt {c^{2}+d^{2}}}+\sqrt {c^{2}+d^{2}}\right )}{4 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {d x + c}}{x^{2} + 1}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.16, size = 133, normalized size = 0.42 \[ -\mathrm {atan}\left (\frac {2\,c\,\sqrt {-\frac {c}{4}-\frac {d\,1{}\mathrm {i}}{4}}\,\sqrt {c+d\,x}-d\,\sqrt {-\frac {c}{4}-\frac {d\,1{}\mathrm {i}}{4}}\,\sqrt {c+d\,x}\,2{}\mathrm {i}}{c^2+d^2}\right )\,\sqrt {-\frac {c}{4}-\frac {d\,1{}\mathrm {i}}{4}}\,2{}\mathrm {i}+\mathrm {atan}\left (\frac {2\,c\,\sqrt {-\frac {c}{4}+\frac {d\,1{}\mathrm {i}}{4}}\,\sqrt {c+d\,x}+d\,\sqrt {-\frac {c}{4}+\frac {d\,1{}\mathrm {i}}{4}}\,\sqrt {c+d\,x}\,2{}\mathrm {i}}{c^2+d^2}\right )\,\sqrt {-\frac {c}{4}+\frac {d\,1{}\mathrm {i}}{4}}\,2{}\mathrm {i} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 5.29, size = 53, normalized size = 0.17 \[ 2 d \operatorname {RootSum} {\left (256 t^{4} d^{4} + 32 t^{2} c d^{2} + c^{2} + d^{2}, \left (t \mapsto t \log {\left (64 t^{3} d^{2} + 4 t c + \sqrt {c + d x} \right )} \right )\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________